package com.conf;

/**
 * Created by pan on 17/11/7 0007.
 * <p>
 * 账目类型enum
 */
public enum AccountTypeEnum {

    充值(1),
    提现(2),
    下单(3),
    收益(4),
    提成(5),
    提现失败(6),
    退还权利金(7),
    挂单(8);

    private final Integer type;

    AccountTypeEnum(Integer type) {
        this.type = type;
    }

    public Integer getType() {
        return type;
    }

    public static <T extends Enum<T>> T valueOf(Class<T> enumType, String name) {
        return Enum.valueOf(enumType, name);
    }
}
